<?php
/**
 * Created By PhpStorm
 * Author: patrick wu
 * Date: 2020/11/16
 * Time: 14:22
 */
namespace App\Http\Model\Mysql;

use Illuminate\Database\Eloquent\Model;

class AnchorModel extends Model
{
    const IS_DELETE   =   1,        //是否删除
        NOT_DELETE    =   0;

    protected $table    =   'mini_anchor';

    protected $guarded  =   [];

    protected $dateFormat   =   'U';

    /**
     * @param $query
     */
    public function scopeUseful($query)
    {
        $query->where(['is_delete' => self::NOT_DELETE]);
    }
}
